#include <stdio.h>

#define uint8_t unsigned char
#define uint16_t unsigned short

uint8_t code[4][16] =
{
    {0x00,0x00,0x00,0x00,0x10,0x20,0x10,0x20,0xF8,0x3F,0x00,0x20,0x00,0x20,0x00,0x00},/*"1",1*/
    {0x00,0x00,0xE0,0x0F,0x10,0x10,0x08,0x20,0x08,0x20,0x10,0x10,0xE0,0x0F,0x00,0x00},/*"0",0*/
    {0x08,0x00,0x78,0x00,0x88,0x07,0x00,0x38,0x00,0x0E,0xC8,0x01,0x38,0x00,0x08,0x00},/*"V",10*/
    {0x00,0x00,0xE0,0x0F,0x10,0x11,0x88,0x20,0x88,0x20,0x90,0x20,0x00,0x1F,0x00,0x00}/*"6",6*/
    // {0x00,0x00,0x70,0x30,0x08,0x28,0x08,0x24,0x08,0x22,0x08,0x21,0xF0,0x30,0x00,0x00},/*"2",2*/
    // {0x00,0x00,0x30,0x18,0x08,0x20,0x08,0x21,0x08,0x21,0x88,0x22,0x70,0x1C,0x00,0x00},/*"3",3*/
    // {0x00,0x00,0x00,0x06,0x80,0x05,0x40,0x24,0x30,0x24,0xF8,0x3F,0x00,0x24,0x00,0x24},/*"4",4*/
    // {0x00,0x00,0xF8,0x19,0x88,0x20,0x88,0x20,0x88,0x20,0x08,0x11,0x08,0x0E,0x00,0x00},/*"5",5*/
    // {0x00,0x00,0x18,0x00,0x08,0x00,0x08,0x3E,0x88,0x01,0x68,0x00,0x18,0x00,0x00,0x00},/*"7",7*/
    // {0x00,0x00,0x70,0x1C,0x88,0x22,0x08,0x21,0x08,0x21,0x88,0x22,0x70,0x1C,0x00,0x00},/*"8",8*/
    // {0x00,0x00,0xF0,0x01,0x08,0x12,0x08,0x22,0x08,0x22,0x10,0x11,0xE0,0x0F,0x00,0x00},/*"9",9*/
    // {0x00,0x00,0x00,0x30,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*".",11*/
};

uint16_t number[12][128] = {0};

void init_number(void);
void print_number(void);

int main(int argc, char **argv)
{
    init_number();
    print_number();
    return 0;
}

void init_number(void)
{
    int i; // 每一个字符
    int j; // 字符的每一个  byte
    int k; // byte 的每一个 bit

    for (i = 0; i < 4; i++)
    {
        for (j = 0; j < 16; j++)
        {
            for (k = 0; k < 8; k++)
            {
                if (code[i][j] & (0x1 << k))
                {
                    number[i][8 * k + j / 2 + (j % 2) * 64] = '*';
                }
                else
                {
                    number[i][8 * k + j / 2 + (j % 2) * 64] = ' ';
                }
            }
        }
    }
}

void print_number(void)
{
    int i;
    int j;

    for (i = 0; i < 12; i++)
    {
        for (j = 0; j < 128; j++)
        {
            printf("%c", number[i][j]);
            if (j % 8 == 7)
            {
                printf("\n");
            }
        }
    }
}